<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery3.3.1.js"></script>
</head>
<body>
    <p>在本段移动之后,再去点击本段,保留了click事件</p>
    <button>移动p元素</button>
    <script>
        $(function(){
            $('button').click(function(){
               $("body").append( $("p").detach())
            })
            $("p").click(function(){
                $(this).animate({fontSize:"+=2px"});
            })
        })
    </script>
</body>
</html>